package com.example.foobar.business.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.foobar.dto.DABaseDTO;
import com.example.foobar.entity.DaRetentionRates;
import com.example.foobar.entity.ImsPzGuanhuaiTrack;
import io.geekidea.springbootplus.framework.common.service.BaseService;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 *  服务类
 *
 * @author 郑英奔
 * @since 2021-05-31
 */
public interface ImsPzGuanhuaiTrackService {

    /**
     * 保存
     *
     * @param imsPzGuanhuaiTrack
     * @return
     * @throws Exception
     */
    boolean saveImsPzGuanhuaiTrack(ImsPzGuanhuaiTrack imsPzGuanhuaiTrack) throws Exception;

    /**
     * 修改
     *
     * @param imsPzGuanhuaiTrack
     * @return
     * @throws Exception
     */
    boolean updateImsPzGuanhuaiTrack(ImsPzGuanhuaiTrack imsPzGuanhuaiTrack) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteImsPzGuanhuaiTrack(Long id) throws Exception;

    ImsPzGuanhuaiTrack getById(Long id);

    Integer selectCount(LambdaQueryWrapper<ImsPzGuanhuaiTrack> imsPzGuanhuaiTrackLambdaQueryWrapper) throws Exception;

    List<DABaseDTO> getActiveDataByOfficialAccountIdAndDataRange(String uniacid, Date baseDate, Date startDate, Date endDate, List<String> messageTypeList);

    int getSubscribeCount(String uniacid, Date date);

    int getUnsubscribeCount(String uniacid, Date date);

    Date minDateInDb();

    public List<ImsPzGuanhuaiTrack> list(QueryWrapper<ImsPzGuanhuaiTrack> wrapper);
}
